﻿#ifndef CMDLINECHARTWINDOWCHANGETRACERPROPERTY_H
#define CMDLINECHARTWINDOWCHANGETRACERPROPERTY_H

#include "CommandManager/CommandBase.h"

namespace PostCommand
{
    /// @brief 后处理保存图像命令
    class CmdLineChartWindowChangeTracerProperty : public CommandManager::CommandBase
    {
        Q_OBJECT

        public:
            CmdLineChartWindowChangeTracerProperty();
            ~CmdLineChartWindowChangeTracerProperty();

            bool execute() override;
            void undo() override;
            void redo() override;
            void setData(int tracerID, QString tracerName, double x, int symbolStyle, double symbolSize, QString symbolColor) { 
                m_tracerID = tracerID; 
                m_tracerName = tracerName; 
                m_x = x; 
                m_symbolStyle = symbolStyle; 
                m_symbolSize = symbolSize; 
                m_symbolColor = symbolColor; 
             }

        private:
            int m_tracerID;
            QString m_tracerName;
            double m_x;
            int m_symbolStyle;
            double m_symbolSize;
            QString m_symbolColor;
    };

} // namespace PostCommand

#endif
